package cn.tedu.qxhouserent.house.service;

import cn.tedu.qxhouserent.house.pojo.param.SectionAddNewParam;
import cn.tedu.qxhouserent.house.pojo.param.SectionUpdateInfoParam;
import cn.tedu.qxhouserent.commons.pojo.vo.PageData;
import cn.tedu.qxhouserent.house.pojo.vo.SectionListItemVO;
import cn.tedu.qxhouserent.house.pojo.vo.SectionStandardVO;
import cn.tedu.qxhouserent.house.pojo.vo.SectionTreeItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SectionService {

    String DISPLAY_TEXT[] = {"隐藏", "显示"};

    void addNew(SectionAddNewParam sectionAddNewParam);

    void deleteById(Long id);

    void updateById(Long id, SectionUpdateInfoParam sectionUpdateInfoParam);

    void setDisplay(Long id);

    void setHidden(Long id);

    SectionStandardVO getStandardById(Long id);

    List<SectionTreeItemVO> listTree();

    PageData<SectionListItemVO> listByParentId(Long parentId, Integer pageNum);

    PageData<SectionListItemVO> listByParentId(Long parentId, Integer pageNum, Integer pageSize);
}
